home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / System / DEF / Convert / Freqs / freq-to-cent next >
Text File  |  1998-10-23  |  412b  |  13 lines

  1. freq-to-cent frequency1 frequency2
  2.  
  3. Converts frequency1/ frequency2 ratio into cent value. 1 cent is the smallest pitch change that the human ear can perceive. Octave consists of 1200 cents. If c 0 is 0 cent then c 1 is 1200 cent and c 2 is 2400 cent. Each semitone consists of 100 cents. See cent-to-freq.
  4.  
  5. (freq-to-cent 1 1)
  6. --> 0.0
  7.  
  8. (freq-to-cent 2 1)
  9. --> 1200.0
  10.  
  11. (freq-to-cent 15 16)
  12. --> -111.73128526977762
  13.